package udf;

import com.aliyun.odps.io.LongWritable;
import com.aliyun.odps.udf.UDF;

public class MyUDFDemo2 extends UDF {
    public String evaluate(String s) {
        String res = "默认值";
        try {
            long n = Long.parseLong(s);
            res = String.valueOf(n + 100);
        }catch (Exception e){
            res = "无法转整数类型";
        }

        return res;
    }

}